<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/28 9:16
 * Desc:
 */
abstract class Contract_Api_Common
{
    use Trait_Api_Image;

    /**
     * 获取验证图片
     * @return array
     */
    abstract function get_code_image(): array;

    /**
     * 验证图片码
     * @param $params
     * @return bool
     */
    abstract function check_code_image($params): bool;

    /**
     * 发送短信码
     * @param $params
     * @return bool
     * @throws Exception
     */
    abstract function send_msg_code($params): bool;

    /**
     * 上传图片
     * @param $params
     * @return array
     * @throws Exception
     */
    abstract function upload_img($params): array;

    /**
     * 上传视频
     * @param $params
     * @return array
     * @throws Exception
     */
    abstract function upload_video($params): array;
}